package cn.wenhaha.app.mapping.bean.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 是否包含数据源插件
 * --------
 *
 * @author ：wyndem
 * @Date ：Created in 2022-10-07 12:57
 */

@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {DataSourceContainValidator.class})
public @interface  DataSourceContain {

    String message() default "该数据源插件不存在";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
